#include <boost/bimap.hpp>
#include <string>
#include <iostream>
#include <utility>

int main()
{
  typedef boost::bimap<std::string, int> bimap;
  bimap animals;
  std::pair<std::string, int> arr[3] = {std::make_pair("cat", 4),
	  std::make_pair("shark", 0),std::make_pair("spider", 8)};

  animals.left.insert(arr, arr+3);

  std::cout << animals.left.count("cat") << '\n';
  std::cout << animals.right.count(8) << '\n';

  system("pause");
  return 0;
}